#include <iostream>
#include <vector>
using namespace std;

int main()
{
    string s;
    cin>>s;
    vector<string>strings;
    while (s!=".")
    {
        strings.push_back(s);
        cin>>s;
    }
    if (strings.size()>=14)
        printf("%s and %s are inviting you to dinner...",strings[1].c_str(),strings[13].c_str());
    else if (strings.size()>=2)
        printf("%s is the only one for you...",strings[1].c_str());
    else
        printf("Momo... No one is for you ...");
}